import request from '@/utils/request'

// 查询产品跑马灯列表
export function listMarquee(query) {
  return request({
    url: '/supplier/marquee/list',
    method: 'get',
    params: query
  })
}

// 查询产品跑马灯详细
export function getMarquee(id) {
  return request({
    url: '/supplier/marquee/' + id,
    method: 'get'
  })
}

// 新增产品跑马灯
export function addMarquee(data) {
  return request({
    url: '/supplier/marquee',
    method: 'post',
    data: data
  })
}

// 修改产品跑马灯
export function updateMarquee(data) {
  return request({
    url: '/supplier/marquee',
    method: 'put',
    data: data
  })
}

// 删除产品跑马灯
export function delMarquee(id) {
  return request({
    url: '/supplier/marquee/' + id,
    method: 'delete'
  })
}
